package com.mayikt.strategy;

import com.mayikt.base.BaseResponse;
import com.mayikt.entity.PaymentChannelEntity;
import com.mayikt.entity.PaymentTransactionEntity;
import org.springframework.stereotype.Component;

/**
 * @Name PayStrategy
 * @Author 枫火
 * @Date 2021/7/14 19:43
 * @Description
 **/
@Component
public interface PayStrategy {

    /**
     * 聚合支付 共同抽象行为
     * @return
     */
    String toPayHtml(PaymentChannelEntity pce, PaymentTransactionEntity pte);

    /**
     * 实现人工补偿
     * @param pce
     * @param paymentId
     * @return
     */
    BaseResponse<String> verifyOrder(PaymentChannelEntity pce, String paymentId);
}
